#include "ConfigReader.h"
#include <libxml/tree.h>

#define CONFIG_FILE "tester.conf"

void print_element_names(xmlNode * a_node)
{
	xmlNode *cur_node = NULL;

	for (cur_node = a_node; cur_node; cur_node = cur_node->next) {
		if (cur_node->type == XML_ELEMENT_NODE) {
			printf("node type: Element, name: %s\n", cur_node->name);
		}

		print_element_names(cur_node->children);
	}
}

int main()
{
	xmlNode *root;
	extern xmlDocPtr doc;
	initConfig(CONFIG_FILE);

	root = xmlDocGetRootElement(doc);
	print_element_names(root);
	
	return 0;
}
